package com.demo.consumer;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@EnableDubbo(scanBasePackages = {"com.demo.consumer"})
public class ConsumerApp extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerApp.class, args);
        System.out.println("ConsumerApp started...");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ConsumerApp.class);
    }

}
